package com.maserb.monitor.service.author_manage;

import com.maserb.monitor.entity.UserEntity;
import com.maserb.monitor.repository.UserRepository;
import com.maserb.monitor.service.base.JpaSpecificationService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService extends JpaSpecificationService<UserRepository, UserRepository, UserEntity, String> {
    /*Page<UserEntity> findAll(Pageable pageable, String realName);*/

    Page<UserEntity> findAll(Pageable pageable,String clazzId, String userName , String realName,  String orgId);

    List<UserEntity> findAll(String clazzId,String userName , String realName, String orgId);

    List<UserEntity> findByOrgId(HttpServletRequest request);

    //查询班级的班主任
    UserEntity findClazzMaster(String clazzId);

    UserEntity findByUserName(String userName);

    UserEntity findFirstByName(String name);

    void doReset(String id);
}
